<template>
  <div class="tjb">
    <el-collapse v-model="activeNames" @change="handleChange">
      <el-collapse-item name="1">
        <template slot="title">
          <div>
            <span>检验检查单：</span>
            <el-select v-model="value" placeholder="请选择" size="small">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
            <el-button
              size="small"
              type="primary"
              icon="el-icon-plus"
              style="position: absolute; right: 8%; margin-top: 8px"
              @click.stop="goto_open"
              >上传检查检验报告</el-button
            >
          </div>
        </template>
        <div>
          <el-table
            :data="tableData"
            style="width: 100%; margin-top: 15px"
            :header-cell-style="{
              color: '#000',
              backgroundColor: 'rgb(222,234,255)',
            }"
            height="250"
          >
            <el-table-column prop="date" label="序号"> </el-table-column>
            <el-table-column prop="date" label="检验检查单类型"> </el-table-column>
            <el-table-column prop="date" label="附件">
            </el-table-column>
            <el-table-column prop="date" label="检查日期/报告日期"> </el-table-column>
            <el-table-column prop="date" label="检查机构"> </el-table-column>
            <el-table-column prop="date" label="录入人员"> </el-table-column>
            <el-table-column prop="date" label="录入日期"> </el-table-column>
            <el-table-column prop="date" label="备注"> </el-table-column>
            <el-table-column
              prop="date"
              label="操作"
              fixed="right"
              width="220"
              align="center"
            >
              <template slot-scope="">
                <el-button
                  type="primary"
                  plain
                  size="mini"
                  style="background-color: #fff; color: rgb(47, 160, 254)"
                  >下载</el-button
                >
                <el-button
                  type="primary"
                  plain
                  size="mini"
                  style="background-color: #fff; color: rgb(47, 160, 254)"
                  >预览</el-button
                >
                <el-button
                  type="primary"
                  plain
                  size="mini"
                  style="background-color: #fff; color: rgb(47, 160, 254)"
                  >修改</el-button
                >
              </template>
            </el-table-column>
          </el-table>
        </div>
      </el-collapse-item>
    </el-collapse>
    <!-- 弹层开始 -->
    <el-dialog
      title="上传检验检查报告"
      :visible.sync="dialogVisible"
      width="40%"
      style="margin-top: -10vh"
      :before-close="handleClose"
      :append-to-body="true"
      :close-on-click-modal="false"
    >
      <div style="height: 65vh; overflow: auto">
        <scjcjy></scjcjy>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">关 闭</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >保 存</el-button
        >
      </span>
    </el-dialog>
    <!-- 弹层结束 -->
  </div>
</template>
  
  <script>
import scjcjy from "@/views/dialog_info/scjcjy.vue"; // 上传检验检查报告
export default {
  components: {
    scjcjy,
  },
  data() {
    return {
      activeNames: [],
      tableData: [{}],
      dialogVisible: false,
      options: [
        {
          value: "测试",
          label: "测试",
        },
      ],
    };
  },
  methods: {
    handleChange(val) {
    },
    goto_open() {
      this.dialogVisible = true;
    },
    handleClose() {
      this.dialogVisible = false;
    },
  },
};
</script>
  
  <style lang="scss" scoped>
.tjb {
}
</style>